package com.library.controller;

import lombok.extern.java.Log;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author weiwu
 * @description 错误页面的控制器
 * @date 2018/10/7 20:07
 */
@Controller
@Log
public class ErrorPageController {
    @RequestMapping ( "404" )
    public String page404() {
        log.info("HTTP-400错误");
        return "errors/404";
    }

    @RequestMapping ( "500" )
    public String page500() {
        log.warning("500错误");
        return "errors/500";
    }
}
